package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.pojo.Picture;
import com.itheima.pojo.PictureVO;

public interface PictureService {

    /**
     *添加图片
     * @param pictureVO
     */
    void add(PictureVO pictureVO);

    /**
     * 删除图片
     * @param pictureVO
     */
    void delete(PictureVO pictureVO);

    /**
     * 编辑图片
     * @param pictureVO
     */
    void edit(PictureVO pictureVO);

    /**
     * 获取图片列表
     * @param pictureVO
     * @return
     */
    PageInfo<Picture> getList(PictureVO pictureVO);

    /**
     * 通过图片Uid将图片设为封面
     * @param pictureVO
     */
    void setCover(PictureVO pictureVO);
}
